package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class GroupSpecification {

    private int beginIndex;
    private int endIndex;
    private Identifier groupName;
    private SchemaQualifiedName pathResolvedUserDefinedTypeName;

    public GroupSpecification(Identifier groupName,
                              SchemaQualifiedName pathResolvedUserDefinedTypeName) {
        this.beginIndex = groupName.getBeginIndex();
        this.endIndex = pathResolvedUserDefinedTypeName.getEndIndex();
        this.groupName = groupName;
        this.pathResolvedUserDefinedTypeName = pathResolvedUserDefinedTypeName;
    }

    public int getBeginIndex() {
        return beginIndex;
    }

    public int getEndIndex() {
        return endIndex;
    }

    public Identifier getGroupName() {
        return groupName;
    }

    public SchemaQualifiedName getPathResolvedUserDefinedTypeName() {
        return pathResolvedUserDefinedTypeName;
    }

}
